package com.pzl.base.app;

import android.annotation.SuppressLint;
import android.app.Application;
import android.content.Context;

import com.pzl.base.AppCrashHandler;


@SuppressLint("InflateParams")
public class BaseApplication extends Application {

    static Context appContext;

    @Override
    public void onCreate() {
        super.onCreate();
        appContext = getApplicationContext();
        AppCrashHandler.getInstance().init(this);
    }

    public static synchronized BaseApplication baseContext() {
        return (BaseApplication) appContext;
    }


}
